package com.polaris.live.adapter

import com.bumptech.glide.Glide
import com.polaris.live.common.adapter.BaseBindingAdapter
import com.polaris.live.common.adapter.VBViewHolder
import com.polaris.live.databinding.ItemTogetherReceiveBinding
import com.polaris.live.resp.back_resp.UserConsumableGroupReward
import com.polaris.live.utils.image.ImageUtils

/**
 * TogetherReceiveAdapter
 *
 * @author Created by 天晴 on 2024/7/17/015 17:13
 */
class TogetherReceiveAdapter : BaseBindingAdapter<ItemTogetherReceiveBinding, UserConsumableGroupReward>() {


    override fun convert(
        holder: VBViewHolder<ItemTogetherReceiveBinding>,
        item: UserConsumableGroupReward,
    ) {
        holder.vb.apply {
            Glide.with(image.context)
                .load(ImageUtils.imgPath(item.icon))
                .into(image)
            tipsTv.text = item.coin
        }
    }

}

